<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>
    Bash console bugs or it&#39;s just me? : Forums : PythonAnywhere
</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="Forums : PythonAnywhere">
        <meta name="author" content="PythonAnywhere LLP">
        <meta name="google-site-verification" content="O4UxDrfcHjC44jybs2vajc1GgRkTKCTRgVzeV6I9V14" />

        <!-- Le styles -->
        <link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
        <link href="/static/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
        <link href="/static/anywhere/styles/bootstrap_base.css" rel="stylesheet">
        
    
    <link rel="stylesheet" href="/static/anywhere/styles/forums.css" type="text/css" media="screen" charset="utf-8" />

    <link rel="stylesheet" href="/static/pygments/style.css" type="text/css" media="screen" charset="utf-8" />

        <link rel="stylesheet" href="/static/jquery/jquery-ui-1.8.11.custom.css" type="text/css" media="screen" charset="utf-8" />
        
    
    <link rel="alternate" type="application/rss+xml" title="RSS" href="/forums/topic/468/rss" />

        <style type="text/css">
            body {
                height: auto;
            }
        </style>
        <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
        <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->

        <!-- Le fav and touch icons -->
        <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
        <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
        <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
    </head>

     <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div id="id_internal_nav_bar_container" class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="/"><img id="id_logo" src="/static/anywhere/images/logo-234x35.png" height="35" title="PythonAnywhere logo" alt="PythonAnywhere logo" /></a>
                    <div class="nav-collapse">
                        <ul id="id_header_links" class="nav">
                            <li><a id="id_feedback_link" class='feedback_link' href="">Send feedback</a></li>
                            <li><a id="id_forums_link" href="/forums/">Forums</a></li>
                            <li><a href="/wiki/" id="id_help_link">Help</a></li>
                            <li><a href="http://blog.pythonanywhere.com/" id="id_blog_link">Blog</a></li>
                            
                            
                                <li><a style="font-weight: bold;" href="/pricing/" id="id_pricing_link">Pricing & signup</a></li>
                                <li><a href="/login/?next=/forums/topic/468/" id="id_login_link">Log in</a></li>
                            
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="top-container" id="id_dummy"></div>

        

        
    
    <div class="container">
        <div class="row">
            <div class="span8 offset3">
                <h1>PythonAnywhere Forums</h1>
            </div>
        </div>



    <div class="row">
        <div class="span8 offset3">
            <p>
                <a href="/forums/start_topic/" id="id_start_new_topic">Start a new topic</a> |
                <a href="/forums/">Back to all topics</a> |
                <a href="/forums/topic/468/rss">This topic's RSS</a>
            </p>
        </div>
    </div>
    <div class="row">
        <div class="span8 offset3 topic">
            <h2>Bash console bugs or it&#39;s just me?</h2>
        </div>
    </div>

    
        <div class="row">
            <div id="id_post_3227" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3227_content_text" class="span8">
                        <p>I think i've found some bash console bugs.
Or maybe it's because I'm a console noob.
You decide.</p>
<p>1) On Mac 10.8.2 using Safari 6.0.2 i can't paste to console.
Cmd + Shift + V does not work. However if I use Paste from Safari's dropdown menu it works.</p>
<p>2) While setting up a Django project I'm asked to enter my email address.</p>
<p>I've written the first part of my email address.
Now I must type the @ charachter and then the domain.
<img alt="console" src="http://img252.imageshack.us/img252/9229/83388373.jpg" title="console" /></p>
<p>This is what appears when i type the @ character (obtained by pressing Alt + "button with @ inside")
<img alt="console" src="http://img72.imageshack.us/img72/4817/17281548.jpg" title="console" /></p>
<p>If I try to move the console cursor using Left Arrow it adds even more wrong characters and the cursor doesn't move so I'm stuck.
<img alt="console" src="http://img27.imageshack.us/img27/1135/45652980.jpg" title="console" /></p>
<p>Fortunately I managed to solve by pasting my email address.
However I think those bugs should be corrected.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3227_creator_details">
                            
                                
                            
                            steveit
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3227_created_date">
                            Feb. 16, 2013, 4:27 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_3227">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3228" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3228_content_text" class="span8">
                        <p>Hello,</p>
<p>Re the paste thing, it's because the console has no 'control' over your clipboard. So, when you press CMD-Shift-V, it goes to the console, not to the OSX for the clipboard. I believe there is a key combination that works, but I don't know what it is...</p>
<p>Re the '@' symbol, I'm using OS X 10.8.2 on a US MBP, and have no problem getting '@', which is SHIFT-2. Are you using an unusual keyboard layout? If you tell the developers what you're using they are almost certainly able to fix it for you.</p>
<p>Thanks</p>
<p>Robert</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3228_creator_details">
                            
                                
                                    <img src="/static/anywhere/images/star.gif" alt="Beloved premium user" title="Beloved premium user"/>
                                
                            
                            rcs1000
                            |
                            123
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3228_created_date">
                            Feb. 16, 2013, 11:35 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_3228">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3243" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3243_content_text" class="span8">
                        <p>Thanks for your reply.
I'm using my iMac and my Macbook with Italian QWERTY keyboard layout.
Here you can see it:
http://en.wikipedia.org/wiki/Keyboard_layout#Italian</p>
<p>Steve</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3243_creator_details">
                            
                                
                            
                            steveit
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3243_created_date">
                            Feb. 18, 2013, 8:48 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_3243">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3249" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3249_content_text" class="span8">
                        <p>Thanks, Steve.  We're planning to upgrade to a different console emulator soon, and I hope this will fix the problem.  It's all caused by the rather poor state of keyboard events in JavaScript; sometimes we get the character you typed, and sometimes we get a keycode.  The problem with the keycodes is that they're just numbers that mean different characters depending on which kind of keyboard you have, so there's no way for us to unambiguously work out what the user was trying to type from the number we're given.</p>
<p>However, there is a console from Google (they built it for their Chromebook) which we're planning to switch to.  It is optimised for Chrome, of course, but it looks like we should be able to get it working for other browsers.</p>
<p>Re: the copy/paste thing -- Robert is correct, we don't get access to the clipboard directly (this is a JavaScript security feature to stop random websites from stealing the contents of your clipboard.  So in Chrome, Control-Shift-C and Control-Shift-V work, but in Safari and Firefox you have to use the menu options.</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3249_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_3249_created_date">
                            Feb. 18, 2013, 12:17 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_3249">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_3252" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_3252_content_text" class="span8">
                        <p>Thanks for the explanation.
Keep up the good work!</p>
<p>Steve</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_3252_creator_details">
                            
                                
                            
                            steveit
                            |
                            5
                            posts
                            |
                            
                        </span>
                        <span id="id_post_3252_created_date">
                            Feb. 18, 2013, 12:44 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_3252">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5638" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5638_content_text" class="span8">
                        <p>Several keys are not working for me in your consoles. I used your little tool to let you know which those are. With loadkeys I might be able to fix things. I wouldn't even mind using alt codes, but I'd need to change delay and repeat rate. Unfortunately neither xset nor kbdrate are available.
[Update] I was a bit off. It's not the repeat rate, but the numeric argument that readline takes. So including the following lines in .inputrc worked for me: "\e0":
"\e1":
"\e2":
"\e3":
"\e4":
"\e5":
"\e6":
"\e7":
"\e8":
"\e9":</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5638_creator_details">
                            
                                
                            
                            mfehlhaber
                            |
                            2
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5638_created_date">
                            July 26, 2013, 9:31 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_5638">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5644" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5644_content_text" class="span8">
                        <p>@mfehlhaber thanks for letting us know.  Which keyboard layout do you have, BTW?</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5644_creator_details">
                            
                                <img src="/static/anywhere/images/staff.png" alt="Staff" title="Staff"/>
                            
                            giles
                            |
                            866
                            posts
                            |
                            
                                PythonAnywhere staff
                                |
                            
                        </span>
                        <span id="id_post_5644_created_date">
                            July 26, 2013, 11:18 a.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_5644">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    
        <div class="row">
            <div id="id_post_5646" class="span8 offset3 post">
                <div class="row">
                    <div id="id_post_5646_content_text" class="span8">
                        <p>This is not my machine... win7/system language german/german keyboard</p>
                    </div>
                </div>
                <div class="row">
                    <div class="span7 post_metadata">
                        <span id="id_post_5646_creator_details">
                            
                                
                            
                            mfehlhaber
                            |
                            2
                            posts
                            |
                            
                        </span>
                        <span id="id_post_5646_created_date">
                            July 26, 2013, 12:48 p.m.
                        </span>
                        |
                        <a href="https://www.pythonanywhere.com/forums/topic/468/#id_post_5646">permalink</a>
                    </div>
                    <div class="span1">
                        
                    </div>
                </div>
            </div>
        </div>
    

    




        <div id="id_footer" class="container">

            <footer id="id_copyright_div">
                <p>
                    Copyright &copy; 2013 PythonAnywhere LLP
                    &mdash;
                    <a href="/terms/">Terms</a>
                    &mdash;
                    <a href="/privacy/">Privacy</a><br/>
                    "Python" is a registered trademark of the Python Software Foundation.
                </p>
            </footer>

        </div>

        
        

        <div id="id_feedback_dialog" title="Help us improve" style="display:none">
    <div id="id_feedback_dialog_blurb_big" class="dialog_blurb_big">
        It's always a pleasure to hear from you!
    </div>
    <div id="id_feedback_dialog_blurb_small">
        Ask us a question, or tell us what you love or hate about PythonAnywhere.<br/>
        We'll get back to you over email ASAP.
    </div>
    <textarea id="id_feedback_dialog_text" rows="6"></textarea>
    <input id="id_feedback_dialog_email_address" type="text" class="default_prompt"/>
    <div id="id_feedback_dialog_error" class="pa_hidden">
        Sorry, there was an error connecting to the server. <br/>Please try again in a few moments...
    </div>
    <div class="dialog_buttons">
        <img id="id_feedback_dialog_spinner" src="/static/anywhere/images/spinner-small.gif" />
        <button class="btn btn-primary" id="id_feedback_dialog_ok_button">OK</button>
        <button class="btn" id="id_feedback_dialog_cancel_button">Cancel</button>
    </div>
</div>


        <!-- Le javascript
        ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script type="text/javascript" src="/static/jquery/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="/static/jquery/jquery-ui-1.8.11.custom.min.js"></script>
        <script src="/static/bootstrap/js/bootstrap-transition.js"></script>
        <script src="/static/bootstrap/js/bootstrap-alert.js"></script>
        <script src="/static/bootstrap/js/bootstrap-modal.js"></script>
        <script src="/static/bootstrap/js/bootstrap-dropdown.js"></script>
        <script src="/static/bootstrap/js/bootstrap-scrollspy.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tab.js"></script>
        <script src="/static/bootstrap/js/bootstrap-tooltip.js"></script>
        <script src="/static/bootstrap/js/bootstrap-popover.js"></script>
        <script src="/static/bootstrap/js/bootstrap-button.js"></script>
        <script src="/static/bootstrap/js/bootstrap-collapse.js"></script>
        <script src="/static/bootstrap/js/bootstrap-carousel.js"></script>
        <script src="/static/bootstrap/js/bootstrap-typeahead.js"></script>

        <script type="text/javascript">
            var urls = {};
            var Anywhere = {};
            Anywhere.urls = {};
        </script>
        <script type="text/javascript" src="/static/anywhere/scripts/ajax_utils.js"></script>

        <script type="text/javascript" src="/static/anywhere/scripts/feedback_dialog.js"></script>
        
        <script type="text/javascript">
            $(function() {
                $.extend(
                    urls,
                    {
                        feedback: '/feedback/submit/'
                    }
                );
                
                    Anywhere.FeedbackDialog.Initialise(urls, false);
                
            });
        </script>

        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-18014859-6']);
            _gaq.push(['_trackPageview']);

            (function() {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

        </script>

        



    </body>
</html>
